package com.ltx.request;

import com.ltx.constant.Constant;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * 登录请求体
 */
@Data
public class LoginRequestBody {
    @Pattern(regexp = Constant.PHONE_REGEXP, message = Constant.PHONE_IS_INVALID)
    private String phone;
    private String code;
}
